package com.elock.entity;


import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.elock.base.core.entity.BaseEntity;


/**
 * Entity - 用户角色
 * @author 仁德
 */
@Entity
@Table(name = "pc_user_role")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "pc_user_role_sequence")
public class PcUserRole extends BaseEntity {

	private static final long serialVersionUID = -7201295196206143284L;

	/** 用户 */
	private Member member;

	/** 角色 */
	private PcRole pcRole;

	@ManyToOne(fetch = FetchType.LAZY)
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	public PcRole getPcRole() {
		return pcRole;
	}

	public void setPcRole(PcRole pcRole) {
		this.pcRole = pcRole;
	}
}
